package cn.assumejson.springframework.beans.context;

import java.util.EventListener;

/**
 * 事件监听器
 *
 * @author Mr. Li
 * @version 1.0
 * @since 1.0 2021/12/1 17:11
 */
@FunctionalInterface
public interface ApplicationListener<E extends ApplicationEvent> extends EventListener {
    /**
     * Handle an application event.
     *
     * @param event the event to respond to
     */
    void onApplicationEvent(E event);
}
